package com.luoyx.hauyne.admin.amqp.consumer;

import com.luoyx.hauyne.admin.config.QueueConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author admini
 */
@Slf4j
@Component
public class UserProfileUpdatedConsumer {

    @RabbitListener(queues = QueueConfig.USER_PROFILE_UPDATED_QUEUE_NAME)
    public void handleUserProfileUpdate(String message) {
        log.info("接收到消息：" + message);
    }
}
